home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / nt_dsp1.lzh / NT_DSP1.MSA / SORT / SORT2T.ASM < prev   
Assembly Source File  |  1989-01-24  |  729b  |  30 lines

  1. ;
  2. ; This program originally available on the Motorola DSP bulletin board.
  3. ; It is provided under a DISCLAIMER OF WARRANTY available from
  4. ; Motorola DSP Operation, 6501 Wm. Cannon Drive W., Austin, Tx., 78735.
  5. ;
  6. ; sort2t.asm - test program to sort a list of numbers
  7. ; by Heapsort method (most efficient for larger arrays)
  8. ; Last Update 16 Sep 87   Version 1.0
  9. ;
  10. ;
  11.  
  12.         page    132,66,3,3
  13.         opt     nomd,mex,cre,cex,mu,rc
  14.  
  15.  
  16.         include 'sort2.asm'
  17.  
  18. ; sort this list of items in x memory space
  19.         org     x:$0
  20. LIST    dc      44,55,12,42,94,18,06,67
  21.  
  22. ; main program to call SORT2 macro
  23.  
  24.         org     p:$40
  25.         sort2   LIST,8          ;sort the list of 8 items
  26.  
  27.         end
  28.  
  29.